package com.hakim.wfb.customer.result.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkfs.fundamental.api.data.DataObjectBase;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by lenovo on 2017/7/15.
 */
public class OrderListView extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
     * 订单主键
     */
    private String tid;
    /**
     * 购物车主键
     */
    private String purchaseid;

    /**
     * 商品主键
     */
    private String goodsid;

    /**
     * 商品单价
     */
    private double glPrice;
    /**
     * 名称
     */
    private String glName;
    /**
     * 更新时间
     */
    private Date olUpdateDate;

    /**
     * 订单号
     */
    private String olOrderno;

    /**
     * 状态
     */
    private Integer olStatus;

    /**
     * 用户
     */
    private String olUser;

    public String getOlUser() {
        return olUser;
    }

    public void setOlUser(String olUser) {
        this.olUser = olUser;
    }

    /**
     * 金额
     */
    private double olSum;

    public double getOlSum() {
        return olSum;
    }

    public void setOlSum(double olSum) {
        this.olSum = olSum;
    }

    /**
     * 地址
     */
    private String olAddr;

    public String getOlAddr() {
        return olAddr;
    }

    public void setOlAddr(String olAddr) {
        this.olAddr = olAddr;
    }

    public Integer getOlStatus() {
        return olStatus;
    }

    public void setOlStatus(Integer olStatus) {
        this.olStatus = olStatus;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getPurchaseid() {
        return purchaseid;
    }

    public void setPurchaseid(String purchaseid) {
        this.purchaseid = purchaseid;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public double getGlPrice() {
        return glPrice;
    }

    public void setGlPrice(double glPrice) {
        this.glPrice = glPrice;
    }

    public String getGlName() {
        return glName;
    }

    public void setGlName(String glName) {
        this.glName = glName;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getOlUpdateDate() {
        return olUpdateDate;
    }

    public void setOlUpdateDate(Date olUpdateDate) {
        this.olUpdateDate = olUpdateDate;
    }

    public String getOlOrderno() {
        return olOrderno;
    }

    public void setOlOrderno(String olOrderno) {
        this.olOrderno = olOrderno;
    }
}
